﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LCUI_Graph_ 
{
    internal int h;
    internal int w;
    public int color_type;
    public Sprite sprite;

    public void Init(Sprite sprite)
    {
        this.sprite = sprite;
        h = sprite.texture.height;
        w = sprite.texture.width;
        color_type = 1;
    }
}

public class MyGraph :MonoBehaviour
{
    //public static LCUI_Graph_ Graph_Buff;
    public static void Graph_Init(out LCUI_Graph_ graph_buff)
    {
        graph_buff = new LCUI_Graph_();
       // Graph_Buff = graph_buff;
    }

    internal static void GameGraphRes_GetGraph(string class_name, string graph_name, LCUI_Graph_ graph_buff)
    {
        string[] name = class_name.Replace("::", ":").Split(':');
        string path = name[name.Length -1] + "/" + graph_name;
        graph_buff.Init(Resources.Load<Sprite>(path));
    }

    internal static void Graph_HorizFlip(LCUI_Graph_ graph_buff, LCUI_Graph_ tmp_graph)
    {
      
    }

    public static void Graph_Replace(LCUI_Graph_ graph, LCUI_Graph_ graph2, LCUI_Pos_ pos)
    {

    }

    public static void Graph_Free(LCUI_Graph_ img_buff)
    {
       
    }

    public static void Graph_FillColor(LCUI_Graph_ graph, LCUI_RGB_ fill_color)
    {
        
    }
}

